home *** CD-ROM | disk | FTP | other *** search
- Path: news.platinum.com!news
- From: jlane@brownstone.com (Jason J. Lane)
- Newsgroups: comp.lang.c
- Subject: Want single character input function for Solaris/UNIX
- Date: 2 Apr 1996 16:58:24 GMT
- Organization: PLATINUM technology, Inc
- Message-ID: <4jrmbg$gkv@news.platinum.com>
- Reply-To: jlane@brownstone.com (Jason J. Lane)
- NNTP-Posting-Host: ns2-ssn.platinum.com
- X-Newsreader: IBM NewsReader/2 v1.9d - NLS
-
- Greetings,
-
- I need a sample program/snippet that does single character input (raw)
- under UNIX. I'm porting code from OS/2 and it allowed me to use the
- getch() function to retrieve a single character and act on it without
- having the user hit <ENTER> first. Basically I'm asking the user for a
- password and don't want it to echo to the screen. I know this involves
- curses in some manner but I'm not a UNIX guru.
-
- TIA!
-
- /**********************************************************************
- Name: Jason J. Lane (jlane@brownstone.com)
- Org: PLATINUM technology, inc.
- Disc: My employer is not liable for my actions (duh!)
- Quote: The wise man can pick up a grain of sand and envision a whole
- universe. But the stupid man will just lie down on some seaweed
- and roll around until he's completely draped in it. Then he'll
- stand up and go, "Hey, I'm Vine Man."
- **********************************************************************/
-
-